package com.jandan.persistence.iface;

import java.util.List;


import com.jandan.ui.model.BlogArticle;

/**
 * 博客文章的数据库访问接口，<span style='font-style:italic;'>此类可能会被弃用</span>
 * @author Gong Yong
 * @version 1.0
 * @see com.jandan.persistence.sqlmapdao.BlogArticleSqlMapDao 
 */
public interface BlogArticleDao {

	List<BlogArticle> getAllBlogArticleList();

	BlogArticle getBlogArticleByArticleID(long articleID);

	long insertBlogArticle(BlogArticle article);

	void updateBlogArticle(BlogArticle article);

	void deleteBlogArticle(long articleID);

	List<BlogArticle> getAllBlogArticleList(int start, int limit);

	int getTotalBlogArticleCount();

	List<BlogArticle> getAllBlogArticleListByCategory(int start, int limit,
			String category);

	int getTotalBlogArticleCountByCategory(String category);

}
